package cn.ulc.socket.weapp.model.param;

import cn.ulc.store.entity.order.OrderItem;
import cn.ulc.store.entity.user.UserCoupon;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@NotNull
public class OrderSaveParam {
    private Long memberId;

    // 支付类型
    private String paymentType;

    //应付金额
    @NotNull
    private BigDecimal goodsAmount;

    // 实际支付金额
    @NotNull
    private BigDecimal payAmount;


    //销售数量
//    @NotNull
    private BigDecimal count;

    // 件数
//    @NotNull
    private Integer rows;

    //收货方式
    private String receiveType;
    //收货人
    private String receiver;
    //收货电话
    private String receivePhone;
    //收货地址
    private String receiveAddress;
    //收货时间
    private Date receiveTime;


    private  String remark;

    private Boolean isCart;

    private BigDecimal freightAmount;

    private BigDecimal  depositAmount;

    @NotNull
    private List<OrderItem> itemList;

    private UserCoupon coupon;
}
